package api

import (
	"github.com/gogf/gf/net/ghttp"
	"shrimp-blog-server/app/model"
)

func (*apiNavbar) Get(request *ghttp.Request) {
	navbarService.GetNavbar(request, getQueryParamID(request)...)

}

func (*apiNavbar) Post(request *ghttp.Request) {
	var navbar []model.Navbar
	_ = request.Parse(&navbar)
	navbarService.AddNavbar(request, navbar...)

}

func (*apiNavbar) Put(request *ghttp.Request) {
	var navbar []model.Navbar
	_ = request.Parse(&navbar)
	navbarService.UpdateNavbar(request, navbar...)
}

func (*apiNavbar) Delete(request *ghttp.Request) {
	navbarService.DeleteNavbar(request, getQueryParamID(request)...)
}
